<?php
    header('content-type:text/html;charset=utf-8');

    $conn = new mysqli('localhost', 'root', 'root', 'sy2003');

    if ($conn -> connect_error) {
        die('连接失败' . $conn -> connect_error);
    }
?>